﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Profile;
using System.Web;
using System.Web.Security;
using Vit.Web.Models;

namespace Vit.Web.Membership
{
    public class MultiApplicationProfileProvider : SqlProfileProvider
    {
        public override string ApplicationName
        {
            get
            {
                WebSite site = ((Vit.Web.VitApplication)HttpContext.Current.ApplicationInstance).CurrentSite;
                if (site != null)
                    return site.Name;
                return "/";
            }
            set
            {
            }
        }
    }
}
